// ignore: file_names
import 'package:flutter/material.dart';
import 'package:flutter_app2/view/ResponsiveColumn.dart';

class LayoutBuilderRoute extends StatelessWidget {
  const LayoutBuilderRoute({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    var _children = List.filled(6, const Text("A"));
    // Column在本示例中在水平方向的最大宽度为屏幕的宽度
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter_demo'),
      ),
      body: Column(
        children: [
          // 限制宽度为190，小于 200
          SizedBox(width: 190, child: ResponsiveColumn(children: _children)),
          ResponsiveColumn(children: _children),
          // LayoutLogPrint(child:const Text("xx")) // 下面介绍
        ],
      ),
    );
  }
}
